﻿using System.Collections.Generic;
using System.Threading.Tasks;
using VisionCloud.Core.Model.Ms;

namespace VisionCloud.Domain.Repository.Interface.Ms
{
    public interface IMsTaskWxMessageRepository : IBaseRepository<MsTaskWxMessage>
    {
        /// <summary>
        /// 新增任务的订阅消息模板
        /// </summary>
        /// <param name="messageList"></param>
        /// <returns></returns>
        ValueTask<bool> AddMessageAsync(List<MsTaskWxMessage> messageList);

        /// <summary>
        /// 更新消息的状态
        /// </summary>
        /// <param name="messageList"></param>
        /// <returns></returns>
        ValueTask<bool> UpdateRangeMessageAsync(List<MsTaskWxMessage> messageList);
    }
}
